<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>函数默认参数剩余参数</title>
</head>

<body>

</body>
<script>
  "use strict";
  const show = ({ x = 1, y = 2, z = 3 } = {}) => {
    console.log(x + y + z);
  };
  show();
  show({ y: 3 });
  show({ z: 4 });

  let arr = ["你", "我", "他", "她", "它"];
  console.log(arr);
  console.log(...arr);
</script>

</html>